package com.orange.cetback.common.utils;

import java.time.LocalDateTime;

public class ReviewCalculator {
    private static final int[] INTERVALS = {1, 3, 7, 14, 30}; // 根据艾宾浩斯遗忘曲线设置间隔天数

    public static LocalDateTime calculateNextReview(int reviewCount) {
        int days = reviewCount < INTERVALS.length ?
                 INTERVALS[reviewCount] : INTERVALS[INTERVALS.length - 1];
        return LocalDateTime.now().plusDays(days);
    }
}

